import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// 引入Vant样式
import 'vant/lib/index.css'

// 引入全局样式
import '@/styles/global.less'

// 引入base和main Less样式
// import '@/assets/base.less'
// import '@/assets/main.less'

// 引入SVG图标配置
import { registerSvgIcons } from '@/utils/svgConfig'
import SvgIcon from '@/components/SvgIcon.vue'

const app = createApp(App)

// 注册SVG图标
registerSvgIcons(app)

// 注册全局组件
app.component('SvgIcon', SvgIcon)

app.use(createPinia())
app.use(router)

app.mount('#app')
